#include "mainwindow.h"
#include <QApplication>

#define VERSION "V1.0.8"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QFile qssFile(":/style/mystylesheet.qss");
    qssFile.open(QFile::ReadOnly);
    if (qssFile.isOpen())
    {
        QString qss = QLatin1String(qssFile.readAll());
        qApp->setStyleSheet(qss);
        qssFile.close();
    }

    a.setApplicationName("板式编辑工具 " VERSION);

    MainWindow w;
    w.show();

    return a.exec();
}
